@font-face {
  font-family: 'Aljazeera';
  src: url('./Aljazeera.ttf') format('truetype');
}

body {
margin: 0;
padding: 0;
font-family: 'Aljazeera', sans-serif;
/* background-color: #f5f5f5; */
direction: rtl;
}
.top-nav-container {
  position: relative;
  }
  
  
  .top-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  }
  
  
  .circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #312782;
  color: #312782;
  margin: 0 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  }
  
  
  .store-btn {
  background-color: #312782;
  color: #fff;
  padding: 8px 15px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  }
  
  
  .purple-divider {
  height: 1px;
  background-color: #312782;
  margin: 5px 0;
  }
  
  
  .main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  }
  
  
  .brand-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -15px;
  z-index: 100;
  }
  
  .logo {
  width: 180px;
  margin-bottom: -150px;
  }
  
  
  .nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  }
  
  .nav-links li a {
  color: #000;
  padding: 10px 15px;
  font-size: 20px;
  text-decoration: none;
  }
  
  
  .navbar-toggler {
  display: none;
  border: none;
  background: none;
  font-size: 24px;
  color: #312782;
  padding: 10px;
  }
  
  
  .navbar-collapse {
  background-color: #f9f9f9;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px 0;
  }
  
  .navbar-collapse .nav-links {
  flex-direction: column;
  align-items: center;
  }
  
  .navbar-collapse .nav-links li {
  width: 100%;
  }
  
  .navbar-collapse .nav-links li a {
  display: block;
  padding: 10px 20px;
  color: #312782;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
  }
  
  .navbar-collapse .nav-links li a:hover {
  background-color: #f1f1f1;
  }
  
  .navbar-collapse .brand-logo-mobile {
  margin: 15px 0;
  }
  
  .navbar-collapse .brand-logo-mobile img {
  height: 50px;
  width: 150px;
  }
  
  
  @media (max-width: 1200px) {
  .main-nav {
  display: none;
  }
  
  .navbar-toggler {
  display: block;
  }
  } 
.footer {
  background-color: #312782; /* Purple background */
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo img {
  width: 150px; /* Adjust based on your logo size */
  height: auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #ddd;
}
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.social-icons {
  display: flex;
  gap: 15px;
}
.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: #ddd;
}
.footer-phone {
  font-size: 1rem;
  direction: ltr; /* To display phone number correctly */
}
.footer-bottom {
  margin-top: 20px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
}
@media (max-width: 768px) {
  .footer-content {
      flex-direction: column;
      gap: 20px;
  }
  .footer-links {
      gap: 15px;
  }
  .footer-logo img {
      width: 120px;
  }
}

/* Header Styles (Unchanged from Previous) */
.header {
  background-color: #312782;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 60px;
  direction: rtl;
}

.header-text {
  font-size: 36px;
  font-weight: bold;
  margin-right: 200px;
}

.header img {
  max-width: 500px;
  height: auto;
}

/* Updated Cards Container with Enhanced Styling and Animation */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly larger min-width for better spacing */
  gap: 25px;
  padding: 30px 20px;
  background-color: #f8f9fa; /* Slightly lighter background for contrast */
}

.card {
  background-color: #ffffff;
  border-radius: 16px; /* Softer corners */
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Softer shadow */
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden; /* Ensure content stays within rounded corners */
}

.card img {
  width: 100%;
  max-width: 220px; /* Slightly smaller for balance */
  height: auto;
  max-height: 140px;
  object-fit: cover; /* Ensure images look crisp */
  margin-bottom: 15px;
  border-radius: 8px; /* Rounded image corners */
  transition: transform 0.3s ease; /* Animation for image */
}

.card p {
  margin: 0;
  font-size: 18px;
  color: #312782; /* Match brand color */
  font-weight: 600; /* Slightly bolder */
  line-height: 1.4; /* Better readability */
}

/* Hover Animation */
.card:hover {
  transform: translateY(-10px) scale(1.05); /* Lift and slight zoom */
  box-shadow: 0 8px 20px rgba(108, 52, 131, 0.3); /* Enhanced shadow */
  border-color: #6c3483;
}

.card:hover img {
  transform: scale(1.1); /* Zoom image slightly on hover */
}

/* Add a subtle fade-in animation for cards on page load */
.card {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: calc(0.1s * var(--card-index)); /* Staggered animation */
}

/* Keyframes for fade-in animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Breakpoints for Cards and Header */
@media (max-width: 900px) {
  .header {
    padding: 20px 30px;
    flex-direction: column-reverse;
    text-align: center;
  }

  .header-text {
    font-size: 28px;
    margin-top: 15px;
  }

  .header img {
    max-width: 200px;
  }

  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 15px;
  }

  .card p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 15px 20px;
  }

  .header-text {
    font-size: 24px;
  }

  .header img {
    max-width: 150px;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px 10px;
  }

  .card {
    padding: 15px;
  }

  .card img {
    max-width: 180px;
    max-height: 120px;
  }

  .card p {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .header {
    padding: 10px 15px;
  }

  .header-text {
    font-size: 20px;
  }

  .header img {
    max-width: 120px;
  }

  .card img {
    max-width: 150px;
    max-height: 100px;
  }
}